package com.jt.demo;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;
@Component
public class Person {
    public Person(){
        System.out.println("出生");
    }
    @PostConstruct
    public void init(){
        System.out.println("致富");
    }
    public void bad(){
        System.out.println("破产");
    }
    @PreDestroy
    public void destory(){
        System.out.println("跳楼");
    }
}
